package cn.huiyunche.base.service.vo;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;

public class SUserRouteVo implements Serializable {

    private Long id;

    @NotEmpty(message = "分供方ID不能为空")
    private Long userId;

    @NotBlank(message = "起始地编码不能为空")
    private String orginCode;

    private String orginName;

    private Integer maximumEveryDay;

    @NotBlank(message = "目的地编码不能为空")
    private String destCode;

    private String destName;

    private String description;

    private String name;
    private String phone;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator. This method sets the
     * value of the database column s_user_route.id
     *
     * @param id the value for s_user_route.id
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator. This method returns the
     * value of the database column s_user_route.user_id
     *
     * @return the value of s_user_route.user_id
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator. This method sets the
     * value of the database column s_user_route.user_id
     *
     * @param userId the value for s_user_route.user_id
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator. This method returns the
     * value of the database column s_user_route.orgin_code
     *
     * @return the value of s_user_route.orgin_code
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public String getOrginCode() {
        return orginCode;
    }

    /**
     * This method was generated by MyBatis Generator. This method sets the
     * value of the database column s_user_route.orgin_code
     *
     * @param orginCode the value for s_user_route.orgin_code
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public void setOrginCode(String orginCode) {
        this.orginCode = orginCode == null ? null : orginCode.trim();
    }

    /**
     * This method was generated by MyBatis Generator. This method returns the
     * value of the database column s_user_route.orgin_name
     *
     * @return the value of s_user_route.orgin_name
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public String getOrginName() {
        return orginName;
    }

    /**
     * This method was generated by MyBatis Generator. This method sets the
     * value of the database column s_user_route.orgin_name
     *
     * @param orginName the value for s_user_route.orgin_name
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public void setOrginName(String orginName) {
        this.orginName = orginName == null ? null : orginName.trim();
    }

    /**
     * This method was generated by MyBatis Generator. This method returns the
     * value of the database column s_user_route.dest_code
     *
     * @return the value of s_user_route.dest_code
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public String getDestCode() {
        return destCode;
    }

    /**
     * This method was generated by MyBatis Generator. This method sets the
     * value of the database column s_user_route.dest_code
     *
     * @param destCode the value for s_user_route.dest_code
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public void setDestCode(String destCode) {
        this.destCode = destCode == null ? null : destCode.trim();
    }

    /**
     * This method was generated by MyBatis Generator. This method returns the
     * value of the database column s_user_route.dest_name
     *
     * @return the value of s_user_route.dest_name
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public String getDestName() {
        return destName;
    }

    /**
     * This method was generated by MyBatis Generator. This method sets the
     * value of the database column s_user_route.dest_name
     *
     * @param destName the value for s_user_route.dest_name
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public void setDestName(String destName) {
        this.destName = destName == null ? null : destName.trim();
    }

    /**
     * This method was generated by MyBatis Generator. This method returns the
     * value of the database column s_user_route.description
     *
     * @return the value of s_user_route.description
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public String getDescription() {
        return description;
    }

    /**
     * This method was generated by MyBatis Generator. This method sets the
     * value of the database column s_user_route.description
     *
     * @param description the value for s_user_route.description
     * @mbggenerated Sat Dec 10 11:47:37 CST 2016
     */
    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getMaximumEveryDay() {
        return maximumEveryDay;
    }

    public void setMaximumEveryDay(Integer maximumEveryDay) {
        this.maximumEveryDay = maximumEveryDay;
    }

    @Override
    public String toString() {
        return "SUserRouteVo [id=" + id + ", userId=" + userId + ", orginCode=" + orginCode + ", orginName=" + orginName
                + ", maximumEveryDay=" + maximumEveryDay + ", destCode=" + destCode + ", destName=" + destName
                + ", description=" + description + ", name=" + name + ", phone=" + phone + "]";
    }

}